package com.kingint.web.portal.data.service.impl;

import com.kingint.mbg.bas.entity.BasHotel;
import com.kingint.mbg.data.entity.DataCustomerPreference;
import com.kingint.mbg.data.entity.DataRoomHygiene;
import com.kingint.mbg.data.entity.DataWorkOrder;
import com.kingint.mbg.data.mapper.DataWorkOrderMapper;
import com.kingint.web.admin.base.service.BasHotelService;
import com.kingint.web.portal.data.service.DataWorkOrderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kingint.web.sys.service.RedisService;
import com.kingint.web.util.GetDateUtils;
import com.kingint.web.vo.CountParam;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;
import org.springframework.util.ObjectUtils;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 工单统计表 服务实现类
 * </p>
 *
 * @author wxh
 * @since 2021-01-23
 */
@Service

public class DataWorkOrderServiceImpl extends ServiceImpl<DataWorkOrderMapper, DataWorkOrder> implements DataWorkOrderService {

    @Resource
    private RedisService redisService;

    @Override
    public void addwork(Integer hotelId, String countName) {
        redisService.lpush(hotelId+"_"+GetDateUtils.getHour()+"_"+countName,"1");
    }
}
